using System.Text.Json.Serialization;

namespace CardMaker.Library.Models; 

public class TextFrame {
    public int TextFrameId { get; set; }
    public string TextFrameName { get; set; } = string.Empty;
    public string TextFramePosition { get; set; } = string.Empty;

    [JsonIgnore]
    public string Text { get; set; } = string.Empty;

    [JsonConstructor]
    public TextFrame(int textFrameId,string textFrameName, string textFramePosition) {
        TextFrameId = textFrameId;
        TextFrameName = textFrameName;
        TextFramePosition = textFramePosition;
    }

    public TextFrame(){}
}